
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.neuronbit.businessflow.intellij.editor.swing.editor.propertyInspector;


/**
 * The type Inplace context.
 */
public class InplaceContext {
  private final boolean myKeepInitialValue;
  private boolean myStartedByTyping;
  private char myStartChar;
  private boolean myModalDialogDisplayed;

    /**
     * Instantiates a new Inplace context.
     *
     * @param keepInitialValue the keep initial value
     */
    public InplaceContext(boolean keepInitialValue) {
    myKeepInitialValue = keepInitialValue;
  }

    /**
     * Instantiates a new Inplace context.
     *
     * @param keepInitialValue the keep initial value
     * @param startChar        the start char
     */
    public InplaceContext(boolean keepInitialValue, final char startChar) {
    myKeepInitialValue = keepInitialValue;
    myStartedByTyping = true;
    myStartChar = startChar;
  }

    /**
     * Is keep initial value boolean.
     *
     * @return the boolean
     */
    public boolean isKeepInitialValue() {
    return myKeepInitialValue;
  }

    /**
     * Is started by typing boolean.
     *
     * @return the boolean
     */
    public boolean isStartedByTyping() {
    return myStartedByTyping;
  }

    /**
     * Gets start char.
     *
     * @return the start char
     */
    public char getStartChar() {
    return myStartChar;
  }

    /**
     * Is modal dialog displayed boolean.
     *
     * @return the boolean
     */
    public boolean isModalDialogDisplayed() {
    return myModalDialogDisplayed;
  }

    /**
     * Sets modal dialog displayed.
     *
     * @param modalDialogDisplayed the modal dialog displayed
     */
    public void setModalDialogDisplayed(boolean modalDialogDisplayed) {
    myModalDialogDisplayed = modalDialogDisplayed;
  }
}
